import {createStore} from 'vuex'
import getters from './getters'
import mutations from './mutations'
import actions from './actions'

const state = {
    user: {
        isLogin: !!localStorage.getItem('token')
    },
    cartCount:0
}

export default createStore({
    state,
    actions,
    mutations,
    getters
})
